<%@ include file="/common/include.jsp" %>
<head>
	<script src="../scripts/jquery/jquery.js" type="text/javascript"></script>
	<script src="../scripts/ui/jquery.ui.block.js" type="text/javascript"></script>
	<script type="text/javascript">
		function showBlock(){
			$.blockUI({ css: {
				border: 'none', 
	            backgroundColor: '#000', 
	            '-webkit-border-radius': '10px', 
	            '-moz-border-radius': '10px', 
	            opacity: .5, 
	            color: '#000'
	        } });
		}
	</script> 
</head>

<h1>Loaded Projects</h1>

<s:actionerror/>
<s:actionmessage/>

<table class="list">
	<s:if test="projects.size() > 0">
		<s:iterator value="projects" status="status">
			<tr>
				<td>
					<s:url id="url1" namespace="/report" action="index" />
					<a href="${url1}?project.name=${name}" onclick="showBlock()"><s:property value="name" /></a>
					<br />
					<span class="description"><s:property value="shortDescription" /></span>
				</td>
				<td>
					<img alt="" src="../images/icon-report.png">
				</td>
			</tr>
		</s:iterator>
	</s:if>
	<s:else>
		<tr>
			<td>
				No projects loaded
			</td>
		</tr>
	</s:else>
</table>